package friendApi

import (
	"chart.zozoo.net/app/service/friendService"
	"chart.zozoo.net/app/utils/rsp"
	"github.com/gin-gonic/gin"
)

// List 获取好友列表
func List(c *gin.Context) {
	uuid := c.GetString("uuid")

	res, err := friendService.List(uuid)
	if err != nil {
		rsp.JsonErr(c, rsp.SetMsg(err.Error()))
		return
	}

	rsp.JsonOk(c, rsp.SetData(res))
}
